Interchange 1-2/DOORS/RUNDOOR.BAT

1.5 KB a4f86d077b1496ef…
@echo off
cls
:start
tdoor %1 %2 %3
rem
rem ----------------------------------------------------------------------
rem This is where you field error levels from external events.  The
rem errorlevel 3 statement is a safety to catch any events you might
rem define in TDOOR.EVT that you haven't modified this file to handle.
rem ----------------------------------------------------------------------
if errorlevel 3 goto exit
if errorlevel 2 goto event
if errorlevel 1 goto dodoor
goto exit

rem
rem ----------------------------------------------------------------------
rem This is where you would put an external event with errorlevel=2.
rem This event would be set up in the file TDOOR.EVT.  See the TBBS manual
rem on external events for info on programming events in this batch file.
rem See the InterChange manual for information on TDOOR.EVT configuration.
rem
rem This file assumes that you have a batch file named EVENT.BAT which
rem will do your maintenance event...
rem ----------------------------------------------------------------------
:event
if not exist EVENT.BAT goto start
CALL EVENT.BAT
goto start

rem
rem ----------------------------------------------------------------------
rem TDOOR creates the file DOOREXEC.BAT which will run the door program
rem which was selected by the TBBS InterChange script call.
rem ----------------------------------------------------------------------
:dodoor
if not exist DOOREXEC.BAT goto done
DOOREXEC
:exit